FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER zhangrongbin@supermap.com

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /rootstock-codegen

WORKDIR /rootstock-codegen

EXPOSE 5003

ADD ./rootstock-visual/rootstock-codegen/target/rootstock-codegen.jar ./

CMD java -Djava.security.egd=file:/dev/./urandom -jar rootstock-codegen.jar
